home *** CD-ROM | disk | FTP | other *** search
- /*
- sq.C
-
- System Query v1.0
-
- Copyright (C) 1993, Geoff Friesen B.Sc.
- All rights reserved.
-
- Borland C++ 3.1
- */
-
- #if !defined(__LARGE__)
- #error Large Memory Model Expected
- #endif
-
- #include "kbd.H"
- #include "sq.H"
- #include "video.H"
-
- void main (void)
- {
- int win;
-
- (void) v_setup (25);
-
- if (sq_dos1 ())
- v_cputs ("DOS 1.x is active.");
- else
- {
- if (sq_dos5 ())
- v_cputs ("DOS 5.0+ is active.");
- else
- v_cputs ("DOS 5.0+ is not active.");
-
- v_gotoxy (1, v_wherey ()+1);
- if (sq_dvactive ())
- v_cputs ("Desqview 2.0+ is active.");
- else
- v_cputs ("Desqview 2.0+ is not active.");
-
- v_gotoxy (1, v_wherey ()+1);
- if ((win = sq_winactive ()) == 1)
- v_cputs ("Windows is running in standard or real mode.");
- else
- if (win == 2)
- v_cputs ("Windows is running in enhanced (386) mode.");
- else
- v_cputs ("Windows is not running.");
-
- v_gotoxy (1, v_wherey ()+1);
- if (sq_xmm ())
- v_cputs ("Extended Memory Management is active.");
- else
- v_cputs ("Extended Memory Management is not active.");
- }
-
- (void) k_fetch ();
-
- v_cleanup ();
- }